package com.hidt.shop.domain;

public class CollectionAndGoods {
    private int good_id;//商品ID
    private String good_name;//商品名称
    private String good_picture;//商品的图片：如果数据库中存图片的地址，数据类型为varchar2(50)。如果数据库中存的是图片，则用BLOB
    private float goodsale_price;//商品的出售价格，库里存的是数字，页面上显示为￥数字。其中￥表示人民币的符号。
    private int goods_discount;//商品折扣100-0,100为原价，0为免费(默认值：100)
    private int seckil_discount; // 秒杀折扣

    public CollectionAndGoods() {
    }

    public CollectionAndGoods(int good_id, String good_name, String good_picture, float goodsale_price,
                              int goods_discount, int seckil_discount) {
        this.good_id = good_id;
        this.good_name = good_name;
        this.good_picture = good_picture;
        this.goodsale_price = goodsale_price;
        this.goods_discount = goods_discount;
        this.seckil_discount = seckil_discount;
    }

    public int getGood_id() {
        return good_id;
    }

    public void setGood_id(int good_id) {
        this.good_id = good_id;
    }

    public String getGood_name() {
        return good_name;
    }

    public void setGood_name(String good_name) {
        this.good_name = good_name;
    }

    public String getGood_picture() {
        return good_picture;
    }

    public void setGood_picture(String good_picture) {
        this.good_picture = good_picture;
    }

    public float getGoodsale_price() {
        return goodsale_price;
    }

    public void setGoodsale_price(float goodsale_price) {
        this.goodsale_price = goodsale_price;
    }

    public int getGoods_discount() {
        return goods_discount;
    }

    public void setGoods_discount(int goods_discount) {
        this.goods_discount = goods_discount;
    }

    public int getSeckil_discount() {
        return seckil_discount;
    }

    public void setSeckil_discount(int seckil_discount) {
        this.seckil_discount = seckil_discount;
    }

    @Override
    public String toString() {
        return "CollectionAndGoods{" +
                "good_id=" + good_id +
                ", good_name='" + good_name + '\'' +
                ", good_picture='" + good_picture + '\'' +
                ", goodsale_price=" + goodsale_price +
                ", goods_discount=" + goods_discount +
                ", seckil_discount=" + seckil_discount +
                '}';
    }
}
